import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '卡权益id',
            dataIndex: 'cardserverId',
            width: 200,
        },
        {
            title: '标题 或 服务名称',
            dataIndex: 'title',
            width: 200,
        },
        {
            title: '描述',
            dataIndex: 'body',
            width: 200,
        },
        {
            title: 'optType（1增加，2减少）',
            dataIndex: 'optType',
            width: 200,
        },
        {
            title: '操作数值',
            dataIndex: 'numValue',
            width: 200,
        },
        {
            title: '是否扣除（1已扣除，2未扣除）',
            dataIndex: 'isDeduct',
            width: 200,
        },
        {
            title: '操作人Id',
            dataIndex: 'optUserId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: '权益日志扩展表类型1appointment,2checkrecord,3第三方调用',
            dataIndex: 'targetType',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'targetId',
            width: 200,
        },
        {
            title: '创建日期',
            dataIndex: 'createDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '卡权益id',
            field: 'cardserverId',
            component: 'Input',
            required: true,
        },
        {
            label: '标题 或 服务名称',
            field: 'title',
            component: 'Input',
            required: true,
        },
        {
            label: '描述',
            field: 'body',
            component: 'Input',
            required: true,
        },
        {
            label: 'optType（1增加，2减少）',
            field: 'optType',
            component: 'Input',
            required: true,
        },
        {
            label: '操作数值',
            field: 'numValue',
            component: 'Input',
            required: true,
        },
        {
            label: '是否扣除（1已扣除，2未扣除）',
            field: 'isDeduct',
            component: 'Input',
            required: true,
        },
        {
            label: '操作人Id',
            field: 'optUserId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: '权益日志扩展表类型1appointment,2checkrecord,3第三方调用',
            field: 'targetType',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'targetId',
            component: 'Input',
            required: true,
        },
        {
            label: '创建日期',
            field: 'createDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
